<!doctype html>
<html>

<head>
    <meta name='viewport' content='width=device-width' />
    <title>test charset page</title>
</head>
<script>
    function getEncoding() {
        console.log('charset:' + document.charset);
        return document.charset;
    }
</script>

<body>
    hello world, 你好世界!
</body>

</html>